package org.linlinjava.litemall.wx.util;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;

public class ChatUtil {
    public static final String USER_NAME_HOLDER = "{username}";
    public static final String NICK_NAME_HOLDER = "{nickname}";
    public static final String ROLE = "role";
    public static final String SYS = "system";
    public static final String CONTENT = "content";
    public static final String USER = "user";
    static List<String> abnormalAnswerList = new ArrayList<>(Arrays.asList("请不要再问我这样无聊的问题!",
            "我对这个问题不感兴趣。",
            "如果你不想好好聊天，可以自己结束这段对话。",
            "这样有意思吗？",
            "看来你认为自己很幽默。",
            "阿，对对对对。",
            "自便。",
            "你说的什么我不明白。",
            "不如你自己看看你在说些什么。",
            "呵呵。",
            "嗯？！",
            "那么到此结束。",
            "。。。。。。"));

    static List<String> terminateAnswerList = new ArrayList<>(Arrays.asList("缘分到此结束。",
            "那就这样把。",
            "终究是错付了。",
            "累了",
            "。。。。。",
            "你找别人吧。",
            "请自便。",
            "今天就先聊到这吧。",
            "我要睡了。",
            "你还有事要忙吧？",
            "喂？是小美啊？啊，你好你好你好。。。。。（声音渐渐远去）",
            "那么到此结束。",
            "妈妈叫我回家吃饭了。"));

    public static String abnormal(){
        int index = new Random().nextInt(abnormalAnswerList.size());
        return abnormalAnswerList.get(index);
    }

    public static String terminate(){
        int index = new Random().nextInt(terminateAnswerList.size());
        return terminateAnswerList.get(index);
    }
}
